@inherit(parent)

@div(child1-1)
<p>child1-1的div的内容</p>
<p>child1-1的div的内容</p>
<p>child1-1的div的内容</p>


@enddiv

@div(child1-2)
<p>child1-2的div内容</p>
<h1>name:{$name}</h1>
<table>
    <thead>
        <tr>
            <th>no</th>
            <th>name</th>
            <th>age</th>
            <th>sex</th>
            <th>salary</th>
        </tr>
    </thead>
    <tbody>
    @foreach($list as $key => $val)
    <tr>
        <td>{$key}</td>
        <td>{$val['name']}</td>
        <td>{$val['age']}</td>
        <td>{$val['salary']}</td>
        <td>{$base->name}</td>
        <td>
            <div>
<h1>if 语法</h1>
@if($val['sex'] == 'male')
男
@ef($val['sex'] == 'feman')
女
@el
未知
@fi
<p>end 语法</p>
            </div>
        </td>
    </tr>
    @endforeach
    </tbody>
</table>

<div>
    <h1>if 语法</h1>
    @if($name == 'qwe')
    if 数据
    @ef($name == 'zhangsan')
    elseif zhangsan
    @ef($name == 'lisi')
    elseif lisi
    @el
    else 数据
    @fi
    <p>end 语法</p>
</div>
@enddiv


div块外边的内容